package design_pattern.Strategy;

public class Duck {
    FlyBehavior flyBehavior = new SimpleFly();

    public void setFlyBehavior(FlyBehavior flyBehavior){
        this.flyBehavior = flyBehavior;
    }

    public void fly(){
        flyBehavior.Fly();
    }
}
